package com.mapper;

import com.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


/**
 * @author
 * @description user
 * @date 2022-12-19
 */
@Mapper
@Repository
public interface UserMapper {

    /**
     * 新增
     *
     * @author
     * @date 2022/12/19
     **/
    int insert(User user);

    /**
     * 更新
     *
     * @author
     * @date 2022/12/19
     **/
    int update(User user);

    /**
     * 查询 根据username  查询
     *
     * @author
     * @date 2022/12/19
     **/
    User load(String username);


}